#ifndef timer1_H_
#define timer1_H_

	/*includes*/
#include<p30f4011.h>
#include <stdio.h>



	/*defines*/

#define _BV(bit) (1 << (bit))
#define bit_is_set(register,bit) (register & (1 << (bit)))
#define bit_is_clear(register,bit) (!(register & (1 << (bit)))) 
#define Fcy 30000000

void InitTimer1(void);
void __attribute__ ((interrupt, auto_psv))  _T1Interrupt(void);
unsigned long GetTime(void);
unsigned long GetTimeDifference( unsigned long time);

#endif
